﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using AutoFacUtils;
using FluentValidation;
using CashFlow.Web.Areas.SystemManage.Models;

namespace CashFlow.Web.Areas.SystemManage.Validator
{
    public class ShopManagerUserIdModelValidator
        : AbstractValidator<ShopManagerUserIdModel>
    {
        public ShopManagerUserIdModelValidator()
        {
            CascadeMode = CascadeMode.Stop;
            RuleFor(x => x.ShopManagerUserId)
                .Must(x => CommonValidator.IsShopManagerUserIdValid(x))
                .WithMessage("非法ShopManagerUserId");
        }
    }
}